<?php

namespace App\Http\Requests\Auth;

use App\Http\Requests\BaseRequests;

class RegisterRequest extends  BaseRequests {

    public function rules(){
        return [
            'name' => 'required|max:16',
            'email' => 'required|email|unique:users',
            'password' => 'required|min:6|max:16|confirmed',
        ];
    }

    public function messages() {
        return [
            'name.required' => '名字必填',
            'name.max' => '名字最大16个字符'

        ];
    }
}
